<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColEmailToUnitTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('units', function(Blueprint $table)
        {
            $table->string('email')->nullable()->comment('联系邮箱')->after('contact_address');
        });
        Schema::table('unit_settled_apply', function(Blueprint $table)
        {
            $table->string('email')->nullable()->comment('联系邮箱')->after('contact_number');
            $table->string('contact_person')->nullable()->comment('联系人')->after('email');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
